package biz.ezcom.design.pattern.adapter;

/**
 * 由适配器类Ａdapter来连接两个接口或类 
 */
public class Client {
	public static void main(String[] args) {
		TargetAmerican american = new TargetAmericanImpl();
		american.speckAmerican();
		
		AdapteeChinese chinese = new AdapteeChineseImpl();
		TargetAmerican adapter = new AdapterTransactor(chinese);
		adapter.speckAmerican();//此处，美国人，中国人，适配了
	}
}
